import time

class TimeFormatter:
    @staticmethod
    def convert_time(timestamp):
        time_struct = time.localtime(timestamp)
        return time.strftime("%Y-%m-%d %H:%M:%S", time_struct)

    @staticmethod
    def string_to_timestamp(string):
        time_struct = time.strptime(string, "%Y-%m-%d %H:%M:%S")
        return time.mktime(time_struct)

    @staticmethod
    def get_days_between_strings(time_string1, time_string2):
        timestamp1 = TimeFormatter.string_to_timestamp(time_string1)
        timestamp2 = TimeFormatter.string_to_timestamp(time_string2)

        time_diff = abs(timestamp2 - timestamp1)
        days_diff = time_diff // (24 * 3600)

        return days_diff

    @staticmethod
    def get_hours_between_strings(time_string1, time_string2):
        timestamp1 = TimeFormatter.string_to_timestamp(time_string1)
        timestamp2 = TimeFormatter.string_to_timestamp(time_string2)

        time_diff = abs(timestamp2 - timestamp1)
        hours_diff = time_diff // 3600

        return hours_diff